import axios from 'axios';
import { BASEURL } from '../constants';
const token = axios.create({
  baseURL: BASEURL,
});
token.interceptors.request.use(
  function (config) {
    // 添加请求拦截器
    config.headers['Authorization'] = `Bearer ${localStorage.getItem('token')}`;
    console.log(config);
    return config;
  },
  function (err) {
    return Promise.reject(err);
  }
);
export function vertifyToken() {
  return token.post('/login/vertify');
}
